home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 007 / pokepeek.asc < prev    next >
Text File  |  1983-07-22  |  4KB  |  83 lines

  1.  
  2.      Did you know that ... there is a lot of information that may
  3.      be accessed from the ROM BIOS area in your IBM PC, regarding 
  4.      the operating characteristics and options found on your own
  5.      IBM PC?  After carefull analysis of data found in the IBM
  6.      Technical Reference manual a summary of the most useful
  7.      information and where/how it may be referenced has been
  8.      prepared. 
  9.  
  10.      By specifying a DEF SEG=&H40 in any BASIC program, it is
  11.      possible to reference the following vectors (fields) in 
  12.      the ROM BIOS area by using a PEEK function and the following
  13.      offsets from the current segment as defined by the DEF SEG
  14.  
  15.     statement.
  16.      &H0       -  RS232 Addresses on your IBM PC.
  17.                   This will allow you to tell how many (up to
  18.                   four) async cards are attached, if any.
  19.      &H8       -  Printer Addresses on your IBM PC.
  20.                   This will tell you what printer addresses,     
  21.                   and how many (up to four) exist. Each is 
  22.                   addressed by a two byte Hex value.
  23.      &H10      -  Equipment Flag.
  24.                   This field describes the setting of the
  25.                   options switches. It describes what optional
  26.                   devices are attached to the system. The       
  27.                   following lists the bit-significance of this 
  28.      
  29.              field:
  30.                   Bit 0 - indicates that there are diskette 
  31.                           drives on the system.
  32.                   Bit 1 - not used.
  33.                   Bit 2,3 - Planar Ram Size (00=16K 10=32K 01=48K
  34.                             11=64K)
  35.                   Bit 4,5 - Initial Video Mode (00=Unused
  36.                                                 10=40x25 Color
  37.                                                 01=80x25 Color
  38.                                                 11=80x25 Mono)
  39.                   Bit 6,7 - Number of Diskette Drives (00=1 10=2
  40.                             01=3 11=4) only if bit 0 = 1.
  41.                   Bit 8   - Unused
  42.           9,10,11 - Number of RS232 Cards attached
  43.                   Bit 12  - Game I/O Attached
  44.                   Bit 13  - Not used
  45.                   Bit 14,15   - Number of printers attached
  46.      &H13      -  Memory Size in K bytes.
  47.      &H15      -  I/O RAM Size in K bytes.
  48.      &H17      -  Keyboard Flag -- the following lists the masks
  49.                   set to describe current keyboard status:
  50.                   Byte 1;
  51.                   &H80 - Insert state active
  52.                   &H40 - Caps Lock State Has been toggled
  53.                   &H20 - Num Lock State has been toggled
  54.                   &H10 - Scroll Lock State has been toggled
  55.                   &H08 - Alternate Shift key depressed
  56.                   &H04 - Control Shift key depressed
  57.                   &H02 - Left Shift key depressed
  58.                   &H01 - Right Shift key depressed
  59.                   Byte 2;
  60.                   &H80 - Insert Key is depressed
  61.                   &H40 - Caps Lock Key is depressed
  62.                   &H20 - Num Lock Key is depressed
  63.                   &H10 - Scroll Lock key is depressed
  64.                   &H08 - Suspend key has been toggled
  65.      &H49      -  Current CRT mode
  66.                   &H00 - 40x25 BW  
  67.                   &H01 - 40x25 Color
  68.                   &H02 - 80x25 BW
  69.                   &H03 - 80x25 Color
  70.                   &H04 - 320x200 Color
  71.                   &H05 - 320x200 BW
  72.                   &H06 - 640x200 BW
  73.                   &H07 - 80x25 B&W Card -- specialized use, used
  74.                          internal to the video routines.
  75.      &H4A      -  Number of CRT columns
  76.      &H50      -  Cursor Position (one of eight)
  77.      &H60      -  Current cursor mode 
  78.      &H6C      -  Low word of Timer count
  79.      &H6E      -  High word of Timer count
  80.      &H71      -  &H07 - Break key depressed
  81.      &HFA6E    -  Beginning of character regen memory
  82.      &HFF53    -  PRTSC routine address
  83.